home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 7: Sunsite / Linux Cubed Series 7 - Sunsite Vol 1.iso / libs / x / xview / xview3.004 / xview3 / usr / openwin / include / xview_private / bitmask.h < prev    next >
Encoding:
C/C++ Source or Header  |  1996-05-29  |  723 b   |  38 lines

  1. /*    @(#)bitmask.h 20.12 93/06/28 SMI    */
  2.  
  3. /*
  4.  *  Bitmask handling declarations
  5.  */
  6.  
  7. /*
  8.  *    (c) Copyright 1989 Sun Microsystems, Inc. Sun design patents 
  9.  *    pending in the U.S. and foreign countries. See LEGAL NOTICE 
  10.  *    file for terms of the license.
  11.  */
  12.  
  13. #ifndef bitmask_h
  14. #define bitmask_h
  15.  
  16. typedef struct bm_ {
  17.     unsigned int *bm_mask;
  18.     int bm_max_bits;
  19.     int bm_mask_size;
  20. } Bitmask;
  21.  
  22. #ifndef BITSPERBYTE
  23. #define BITSPERBYTE 8
  24. #endif
  25.  
  26. #ifndef bitmask_c
  27.  
  28. extern Bitmask * xv_bitss_new_mask();
  29. extern void xv_bitss_dispose_mask();
  30. extern Bitmask * xv_bitss_set_mask();
  31. extern unsigned int xv_bitss_get_mask();
  32. extern int xv_bitss_cmp_mask();
  33. extern Bitmask * xv_bitss_copy_mask();
  34.  
  35. #endif bitmask_c
  36.  
  37. #endif bitmask_h
  38.